home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 January / Macworld (2000-01).dmg / Shareware World / Utilities / Compression / MacTar / Tar Manual < prev   
Text File  |  1999-10-18  |  12KB  |  120 lines

  1. Tar for the Macintosh
  2. Version 4.2.1
  3.  
  4. What's New
  5.  
  6. Version 4.2.1 fixes a bug in 4.2 which caused some corruption of text files when extracted from archives that contained DOS line endings (CR+LF), and when using Internet Config.
  7.  
  8. Version (4.2) continued the modernization of Macintosh Tar.  It adds two major features: drag-and-drop support, and use of Internet Config for file mappings.  It also now abbreviates filenames which are too long for MacOS, instead of failing to extract them.
  9.  
  10. As of version 4.1, "tar" has been renamed "MacTar" and maintenance has been taken over by Joe Strout (joe@strout.net).  For the latest version and information, go to:
  11.  
  12.     http://www.strout.net/macsoft/meshwork/
  13.  
  14. The fourth version of tar for the Macintosh now partially understands SCSI tape drives.  Tar can read and write tapes directly, allowing exchange with other systems (like Unix).  Tar will now set the modifcation time of extracted files properly.  You can also select an option to overwrite existing files.  Also, several bugs have also been fixed.
  15.  
  16. ***************************
  17. Tar has only been tested with a 150 MB Teac streaming cassette drive and Exabyte 8200 and 8500 drives.
  18. ***************************
  19.  
  20.  
  21. Description
  22.  
  23. This program reads and writes tar format archives.  It has been tested against tar running on A/UX (3.0), 4.3 BSD and the GNU tar program (POSIX compatible).  Floppies and tapes can be exchanged with other systems (on Unix, use raw devices).  The tar archive manipulation code is based on John Gilmore's public domain tar program.  MacTar is freeware. 
  24.  
  25. Note: tar will only archive the data forks of Macintosh files.
  26.  
  27. The File Menu
  28.  
  29. Create
  30. This selection allows you to create a tar archive (variations with selections from the Preferences menu).  The first dialog box will either ask you for the name of the tar archive (Standard File) or will ask you to insert a floppy (either insert a floppy or press the Cancel button) or expects the tape to already be in the drive.  Warning: the floppy must be formatted before using with tar!  Also, using a floppy as the destination of a create will cause the contents to be destroyed!
  31.  
  32. The second dialog box allows you to select the directory (or directories) to be placed into the archive.  This is like the Standard File dialog, except that there is another button, "Select".  Pressing the select button will place the entire directory shown at the top of the file list into the archive.  Pressing the "Open" button when a file in the file list is highlighted is the same as pressing "Select".  Pressing "Open" when a directory in the file list is highlighted causes that directory to become the possible selection candidate.  The "Cancel" button is used to terminate the archive creation.  After each directory is added to the archive, this dialog will appear again to give you the chance to add other directories to the archive.  The other buttons behave like their counterparts.  You may stop the create by typing "Command-.".
  33.  
  34. A simpler way to create a tar archive of a single folder is to drop that folder onto the MacTar icon.  You'll be prompted for a location to save the tar file, and it will be created.  You can't combine multiple files and folders this way, however; dropping multiple folders onto MacTar will create a separate archive for each one.
  35.  
  36. Extract
  37. This selection allows you to extract a tar archive (from either a file, tape or a floppy).  The first dialog box will either ask you for the name of the tar archive (Standard File) or will ask you to insert a floppy or expects the tape to already be in the drive.  The second is the directory selection dialog, and is used to tell tar where to place the extracted files (like in Create).  You may stop the extraction by typing "Command-.".
  38.  
  39. You may also initiate an Extract operation by dropping a tar file onto the MacTar icon, or otherwise passing MacTar a tar file (e.g., by setting it up as a web-browser helper).
  40.  
  41. List
  42. This selection allows you to list the contents of a tar archive to either the screen or printer.  The only dialog is the tar archive selection (Standard File).  You may stop the listing by typing "Command-.".
  43.  
  44. Page Setup
  45. This selection allows you to select the page options for printing.
  46.  
  47. Save Preferences
  48. This selection will create a preference file (in the System Folder or Preferences folder, if possible) that will cause tar to use the current preferences selected to be used next time tar is launched.
  49.  
  50. Quit
  51. Exits tar.
  52.  
  53. The Edit Menu
  54.  
  55. The Edit menu is only used to support desk accessories.
  56.  
  57. The Preferences Menu
  58.  
  59. Any option listed in the Preferences menu will be remembered the next time tar is launched if you select "Save Preferences" in the File menu.
  60.  
  61. Old Tar Compatible
  62. When checked, tar will create archives with the old format.  Otherwise the new standard format is used.  Tar will read archives of either type, regardless of the state of this option.
  63.  
  64. Use Floppy
  65. When checked, tar will use a floppy disk as the archive file source or destination.  See the warning in the description of Create, above.  This option allows the exchange of tar archives on floppies.  Note that this is done by treating the floppy as "a single file". On Unix systems, the device file to tell tar to use will be something like "/dev/rfloppy0" or "/dev/rfd0".  Note that you must use a preformatted disk, as tar will not format it for you.  Most likely, you will have to format it as either a 1.44 MB or 720 KB floppy to be readable in a non-Macintosh drive.
  66.  
  67. Use Tape
  68. When checked, tar will use a SCSI tape drive as the source or destination for the archive file.  This option allows the exchange of tar archives on tapes.
  69.  
  70. Tape Options
  71. This option brings up a dialog box that allows you to set various options for use with tape drives.  The most useful is SCSI ID, which must be set to the SCSI ID of the tape drive.  Tar tries to double check to prevent non-tape devices from being used.  The remaining tape options are for expert use!
  72.  
  73. The three timeout options are in seconds.  the 'Min Cmd' timeout is used for non-tape motion commands.  The 'Motion' timeout is used for commands that read or write data.  An additional second is added for each tape block transferred.  Increase this if your drive is slow to start up.  The 'Rewind' timeout is used when the tape is rewound (actually, unless your drive operates in buffered mode, the rewind is done asynchronously).
  74.  
  75. If the 'Force Variable Blocking' box is checked, tar will attempt to set the drive to variable block mode using the block size set by the 'Block Size' dialog.
  76.  
  77. If the 'Force Mode Select' box is checked, tar will attempt to send a mode select command to the drive.  The 'Density Code', 'Buffered Mode' and 'Speed' fields will be sent in the command.  Note these fields are decimal numbers.  See the manufacturers documentation for valid values.
  78.  
  79. Block Size
  80. This option brings up a dialog box that allows you to set the blocking size.  This is arbitrarily limited to between 1 and 256 512-byte blocks (inclusive).  For tar archives on disk, this only affects the efficiency of the disk transfer.  For floppy archives, the block size should be an integral divisor of the number of sectors on the floppy (for that particular format).
  81.  
  82. For tapes, this will control the efficiency of the transfer.  If 'Force Variable Blocking' is set (see above), this will directly control the size of the logical block on the tape.  Note that for streaming tapes (Exabyte, Teac, QIC), tar will try to use the native (power on default) block size indicated by the drive.  Some streaming tapes (Teac, QIC) will not run in variable block mode.
  83.  
  84. Page Screen Listings
  85. When checked, causes the listing of the archive file contents to stop at each screen full.  When the message "Press any key to continue" appears, any key press will cause the listing to continue.  Note that the "List" archive selection will always be paged in this fashion.
  86.  
  87. List to Printer
  88. When checked, causes the listing of the archive file contents to be printed to the current printer.  A print job dialog will be shown after the archive file and directory selection dialogs.  Note that this will work for all three file options.
  89.  
  90. Use Internet Config
  91. If this option is checked (which, by default, it is), file mappings and translations will be done using Internet Config rather than by the older options now moved to the bottom of the menu.  Use of this option has these effects on extracting from a tar archive:
  92.  
  93.     1. Each file will be given the creator and type mapped to its extension in Internet Config.
  94.     2. If that file type is 'TEXT', then the file will be converted to Mac-style line endings.
  95.  
  96. Note that if the file has no extension, or the extension does not appear in your Internet Config file mappings, then the file will be given the file type and creator set with the last menu option (below), and have its line endings treated according to the older options, too.  In other words, files not found in Internet Config are treated just as if the "Use Internet Config" option were turned off.
  97.  
  98. Upon creating an archive, use of the Internet Config option only causes 'TEXT' files to have their line endings converted to Unix format.  It does not cause any extensions to be added to the files.
  99.  
  100. The final three options in the Preferences menu are becoming obsolete, but are still occasionally needed (as when a file cannot be mapped with Internet Config).  To set these options, you must turn off the "Use Internet Config" option (but you may then turn that option back on once your old-style preferences are set).  These older commands are:
  101.  
  102. Strip LFs (Ext Only)
  103. When checked, causes stripping of line feeds that immediately follow carriage returns.  In effect, it converts MS-DOS style line endings to Macintosh style line endings.  When not checked, no conversion takes place.  This is mutually exclusive with the "Convert Newlines" option.
  104.  
  105. Convert Newlines
  106. When checked, carriage returns ('\r' or 0x0D) are translated to line feeds ('\n' or 0x0A) during archive creation.  During extraction, line feeds are translated to carriage returns.  Note this occurs in the body of all files, and is thus useful only for source or text transfers.  When not checked, no conversion takes place.  This is mutually exclusive with the "Strip LFs" option.
  107.  
  108. Set Creator/Type
  109. This option brings up a dialog box that allows you to set the Finder Creator and Type for all extracted files.
  110.  
  111. The File List Window
  112.  
  113. In each case (create, extract, list), if the "List to Printer" option is not selected, a file list window will display the files (in Unix pathname format) being inserted, extracted or listed.  You may stop the scrolling of this window by typing "Command-S".  "Command-Q" will restart the display.
  114.  
  115. Limitations
  116.  
  117. Tar only works under MacOS 7.0 or later, and only on HFS (or compatible) file systems.  Tar does not understand the device, link, FIFO and contiguous file types defined for the tar header.  Tar does not allow selective extractions, and will not allow a single file to be placed in the archive (unless it is the only file in a directory).  Tar does not include the resource fork.  The tar archive format does not allow names longer than 100 characters.  For creation, the 100 character limit is relative to the directory being archived, and does not include any part of the pathname for directories leading to it.  For extraction, the longest name that will be created is 100 characters, and again, this is relative to the extraction directory.  Individual file or directory names longer than 31 characters will be abbreviated in the middle with an ellipsis ("…") character, but if this does not happen to produce a unique name, the extraction may still fail.  Macintosh file attributes (except for modification date and data fork size) are not kept.
  118.  
  119.  
  120.